package cn.edu.sgu.www.mhxysy.service.except;

import cn.edu.sgu.www.mhxysy.entity.except.JiadianSchema;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
public interface JiadianSchemaService {

    /**
     * 查询全部加点方案
     * @return List<JiadianSchema>
     */
    List<JiadianSchema> selectAll();

    /**
     * 通过角色ID查询加点方案
     * @param roleId 角色ID
     * @return List<JiadianSchema>
     */
    @Transactional(rollbackFor = Exception.class)
    List<JiadianSchema> selectByRoleId(String roleId);

    /**
     * 通过宠物ID查询加点方案
     * @param chongwuId 宠物ID
     * @return List<JiadianSchema>
     */
    @Transactional(rollbackFor = Exception.class)
    List<JiadianSchema> selectByChongwuId(String chongwuId);
}